package cn.wildfirechat.app.model;


import java.io.Serializable;
import java.util.List;
import java.util.Map;


public class R<T> implements Serializable {

    private Integer code;

    private String msg;

    private Integer count;

    private List<T> data;

    private Map<String, Object> map;

    public R() {
    }

    public R(Integer count, List<T> data){
        this.code=0;
        this.msg="成功";
        this.count=count;
        this.data=data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public Map<String, Object> getMap() {
        return map;
    }

    public void setMap(Map<String, Object> map) {
        this.map = map;
    }
}
